<template>
  <el-container style="height: 100%">
    <el-aside width="auto">
      <!-- CommonAside组件   左侧公共区 -->
      <common-aside></common-aside>
    </el-aside>
    <el-container>
      <!-- CommonHeader组件   顶部公共区 -->
      <el-header>
        <common-header />
      </el-header>
      <!-- 页面显示区 -->
      <common-tag></common-tag>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script >
import CommonAside from "../src/components/CommonAside.vue";
import CommonHeader from "../src/components/CommonHeader.vue";
import CommonTag from "../src/components/CommonTag.vue";
//默认出口
export default {
  name: "HomeViem",
  //引入CommonAside组件
  components: {
    CommonAside,
    CommonHeader,
    CommonTag,
  },
  data() {
    return {};
  },
};
</script>

<style lang="less">
.el-header {
  background-color: rgb(10, 10, 10);
}
.el-main {
  padding-top: 0;
}
</style>